﻿using Loki.IoC;
using Loki.IoC.Registration;
using Luna.Data.Common;
using Luna.Data.Crm;

namespace Luna.Data
{
    public class CrmDataInstaller : LokiContextInstaller
    {
        public override void Install(IObjectContext context)
        {
            context.Register(Element.Entity<IEntityData, EntityData>());
            context.Register(Element.For<EntityDataMapper>());

            context.Register(Element.Service<ICrmDataProvider, CrmDataProvider>());
        }
    }
}